class Solution {
public:
    string reverseLeftWords(string s, int n) {
        string substring = s.substr(0, n);
        s.erase(0, n);
        s += substring;
        return s;
    }
};